package org.example.student_dormitory.dao;

import org.example.student_dormitory.entity.Building;
import org.example.student_dormitory.entity.Dormitory;
import org.example.student_dormitory.entity.Student;

import java.sql.Connection;
import java.util.List;

public interface StudentDao extends BaseDao{
    public List<Building> selectBuildings();

    public List<Dormitory> selectByBuildingId(int buildingId);
    //t添加
    public boolean insertStudent(Student student, Connection connection);

    public boolean updateByDormitoryId(int dormitoryId, Connection connection);
}
